﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UIWindow.Models
{
    /// <summary>
    /// 没有注释的不用填写
    /// </summary>
    public class ProcessParametersModel
    {
        /// <summary>
        /// 工序代码
        /// </summary>
        public string GroupCode { get; set; } = "IiquidInjectionA";
        /// <summary>
        /// 组别
        /// </summary>
        public string GroupName { get; set; }
        /// <summary>
        /// 设备编号
        /// </summary>
        public string MachineID { get; set; }
        /// <summary>
        /// 时间 2018-08-08 10:10:00
        /// </summary>
        public string TimeStamp { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string OperatorID { get; set; }
        /// <summary>
        /// 上传模式
        /// </summary>
        public string ProductModel { get; set; } = "Online";
        /// <summary>
        /// 制令单/Package号
        /// </summary>
        public string MoNumber { get; set; }
        /// <summary>
        /// 产品条码
        /// </summary>
        public string ProductSn { get; set; }
        public string Z_ShipmentNo { get; set; }
        public string F_ShipmentNo { get; set; }
        /// <summary>
        /// 综合判定结果 0为OK,1为NG
        /// </summary>
        public string TestResult { get; set; }
        /// <summary>
        /// 测试数据存放节点
        /// </summary>
        public Testdatap[] TestData { get; set; }
        /// <summary>
        /// 物料参数组
        /// </summary>
        public Materialp[] Material { get; set; }
        public object[] CellGroup { get; set; } = new object[0];
        public object[] StepData { get; set; } = new object[0];
    }
    public class Testdatap
    {
        public string ItemCode { get; set; }
        public string Value { get; set; }
    }

    public class Materialp
    {
        /// <summary>
        /// 料号
        /// </summary>
        public string MaterialNo { get; set; }
        /// <summary>
        /// 批次
        /// </summary>
        public string MaterialLot { get; set; }
    }
}
